﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000475 RID: 1141
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class EnterSceneCsReq : IMessage<EnterSceneCsReq>, IMessage, IEquatable<EnterSceneCsReq>, IDeepCloneable<EnterSceneCsReq>, IBufferMessage
	{
		// Token: 0x17000EB5 RID: 3765
		// (get) Token: 0x0600336C RID: 13164 RVA: 0x0008D823 File Offset: 0x0008BA23
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<EnterSceneCsReq> Parser
		{
			get
			{
				return EnterSceneCsReq._parser;
			}
		}

		// Token: 0x17000EB6 RID: 3766
		// (get) Token: 0x0600336D RID: 13165 RVA: 0x0008D82A File Offset: 0x0008BA2A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return EnterSceneCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000EB7 RID: 3767
		// (get) Token: 0x0600336E RID: 13166 RVA: 0x0008D83C File Offset: 0x0008BA3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return EnterSceneCsReq.Descriptor;
			}
		}

		// Token: 0x0600336F RID: 13167 RVA: 0x0008D843 File Offset: 0x0008BA43
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterSceneCsReq()
		{
		}

		// Token: 0x06003370 RID: 13168 RVA: 0x0008D84C File Offset: 0x0008BA4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterSceneCsReq(EnterSceneCsReq other) : this()
		{
			this.contentId_ = other.contentId_;
			this.entryId_ = other.entryId_;
			this.isCloseMap_ = other.isCloseMap_;
			this.gameStoryLineId_ = other.gameStoryLineId_;
			this.teleportId_ = other.teleportId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06003371 RID: 13169 RVA: 0x0008D8AC File Offset: 0x0008BAAC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterSceneCsReq Clone()
		{
			return new EnterSceneCsReq(this);
		}

		// Token: 0x17000EB8 RID: 3768
		// (get) Token: 0x06003372 RID: 13170 RVA: 0x0008D8B4 File Offset: 0x0008BAB4
		// (set) Token: 0x06003373 RID: 13171 RVA: 0x0008D8BC File Offset: 0x0008BABC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ContentId
		{
			get
			{
				return this.contentId_;
			}
			set
			{
				this.contentId_ = value;
			}
		}

		// Token: 0x17000EB9 RID: 3769
		// (get) Token: 0x06003374 RID: 13172 RVA: 0x0008D8C5 File Offset: 0x0008BAC5
		// (set) Token: 0x06003375 RID: 13173 RVA: 0x0008D8CD File Offset: 0x0008BACD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint EntryId
		{
			get
			{
				return this.entryId_;
			}
			set
			{
				this.entryId_ = value;
			}
		}

		// Token: 0x17000EBA RID: 3770
		// (get) Token: 0x06003376 RID: 13174 RVA: 0x0008D8D6 File Offset: 0x0008BAD6
		// (set) Token: 0x06003377 RID: 13175 RVA: 0x0008D8DE File Offset: 0x0008BADE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsCloseMap
		{
			get
			{
				return this.isCloseMap_;
			}
			set
			{
				this.isCloseMap_ = value;
			}
		}

		// Token: 0x17000EBB RID: 3771
		// (get) Token: 0x06003378 RID: 13176 RVA: 0x0008D8E7 File Offset: 0x0008BAE7
		// (set) Token: 0x06003379 RID: 13177 RVA: 0x0008D8EF File Offset: 0x0008BAEF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GameStoryLineId
		{
			get
			{
				return this.gameStoryLineId_;
			}
			set
			{
				this.gameStoryLineId_ = value;
			}
		}

		// Token: 0x17000EBC RID: 3772
		// (get) Token: 0x0600337A RID: 13178 RVA: 0x0008D8F8 File Offset: 0x0008BAF8
		// (set) Token: 0x0600337B RID: 13179 RVA: 0x0008D900 File Offset: 0x0008BB00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint TeleportId
		{
			get
			{
				return this.teleportId_;
			}
			set
			{
				this.teleportId_ = value;
			}
		}

		// Token: 0x0600337C RID: 13180 RVA: 0x0008D909 File Offset: 0x0008BB09
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as EnterSceneCsReq);
		}

		// Token: 0x0600337D RID: 13181 RVA: 0x0008D918 File Offset: 0x0008BB18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(EnterSceneCsReq other)
		{
			return other != null && (other == this || (this.ContentId == other.ContentId && this.EntryId == other.EntryId && this.IsCloseMap == other.IsCloseMap && this.GameStoryLineId == other.GameStoryLineId && this.TeleportId == other.TeleportId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600337E RID: 13182 RVA: 0x0008D994 File Offset: 0x0008BB94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ContentId != 0U)
			{
				num ^= this.ContentId.GetHashCode();
			}
			if (this.EntryId != 0U)
			{
				num ^= this.EntryId.GetHashCode();
			}
			if (this.IsCloseMap)
			{
				num ^= this.IsCloseMap.GetHashCode();
			}
			if (this.GameStoryLineId != 0U)
			{
				num ^= this.GameStoryLineId.GetHashCode();
			}
			if (this.TeleportId != 0U)
			{
				num ^= this.TeleportId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600337F RID: 13183 RVA: 0x0008DA37 File Offset: 0x0008BC37
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06003380 RID: 13184 RVA: 0x0008DA3F File Offset: 0x0008BC3F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06003381 RID: 13185 RVA: 0x0008DA48 File Offset: 0x0008BC48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.EntryId != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.EntryId);
			}
			if (this.IsCloseMap)
			{
				output.WriteRawTag(32);
				output.WriteBool(this.IsCloseMap);
			}
			if (this.TeleportId != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.TeleportId);
			}
			if (this.ContentId != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.ContentId);
			}
			if (this.GameStoryLineId != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.GameStoryLineId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06003382 RID: 13186 RVA: 0x0008DAF4 File Offset: 0x0008BCF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ContentId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ContentId);
			}
			if (this.EntryId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.EntryId);
			}
			if (this.IsCloseMap)
			{
				num += 2;
			}
			if (this.GameStoryLineId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GameStoryLineId);
			}
			if (this.TeleportId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.TeleportId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06003383 RID: 13187 RVA: 0x0008DB88 File Offset: 0x0008BD88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(EnterSceneCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ContentId != 0U)
			{
				this.ContentId = other.ContentId;
			}
			if (other.EntryId != 0U)
			{
				this.EntryId = other.EntryId;
			}
			if (other.IsCloseMap)
			{
				this.IsCloseMap = other.IsCloseMap;
			}
			if (other.GameStoryLineId != 0U)
			{
				this.GameStoryLineId = other.GameStoryLineId;
			}
			if (other.TeleportId != 0U)
			{
				this.TeleportId = other.TeleportId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06003384 RID: 13188 RVA: 0x0008DC14 File Offset: 0x0008BE14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06003385 RID: 13189 RVA: 0x0008DC20 File Offset: 0x0008BE20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 32U)
				{
					if (num == 8U)
					{
						this.EntryId = input.ReadUInt32();
						continue;
					}
					if (num == 32U)
					{
						this.IsCloseMap = input.ReadBool();
						continue;
					}
				}
				else
				{
					if (num == 48U)
					{
						this.TeleportId = input.ReadUInt32();
						continue;
					}
					if (num == 56U)
					{
						this.ContentId = input.ReadUInt32();
						continue;
					}
					if (num == 96U)
					{
						this.GameStoryLineId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x0400142E RID: 5166
		private static readonly MessageParser<EnterSceneCsReq> _parser = new MessageParser<EnterSceneCsReq>(() => new EnterSceneCsReq());

		// Token: 0x0400142F RID: 5167
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001430 RID: 5168
		public const int ContentIdFieldNumber = 7;

		// Token: 0x04001431 RID: 5169
		private uint contentId_;

		// Token: 0x04001432 RID: 5170
		public const int EntryIdFieldNumber = 1;

		// Token: 0x04001433 RID: 5171
		private uint entryId_;

		// Token: 0x04001434 RID: 5172
		public const int IsCloseMapFieldNumber = 4;

		// Token: 0x04001435 RID: 5173
		private bool isCloseMap_;

		// Token: 0x04001436 RID: 5174
		public const int GameStoryLineIdFieldNumber = 12;

		// Token: 0x04001437 RID: 5175
		private uint gameStoryLineId_;

		// Token: 0x04001438 RID: 5176
		public const int TeleportIdFieldNumber = 6;

		// Token: 0x04001439 RID: 5177
		private uint teleportId_;
	}
}
